package com.kedsoft.andaily.mapper;

import com.kedsoft.andaily.entity.CunsumerPos;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.kedsoft.andaily.vo.CunsumerPosVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 执行人员当前位置 Mapper 接口
 * </p>
 *
 * @author LGP
 * @since 2019-05-16
 */
public interface CunsumerPosMapper extends BaseMapper<CunsumerPos> {
    @Select("select p.id as id, p.cunsumername, p.cunsumerid,c.mobile as cunsumerphone,c.routername as routername, p.cunsumerlng,p.cunsumerlat, p.uptime from pt_cunsumer_pos as p left join pt_cunsumer as c on p.cunsumerid = c.id")
    List<CunsumerPosVo> getAllPosVo();
}
